﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class BookService
    {
        #region 属性
        private int _id;
        private int _tableId;
        private int _headCount;
        private DateTime _orderTime;
        private DateTime _bookTime;
        private DateTime _deathTime;
        private DateTime _realComeTime;
        private string _customerName;
        private string _customerPhone;
        private int _memberId;
        #endregion 

        #region 构造
        public BookService()
        {
            _tableId               = 0;
            _headCount             = 0;
            _orderTime             = DateTime.Now;
            _bookTime              = DateTime.Now;
            _deathTime             = DateTime.Now;
            _realComeTime          = DateTime.Now;
            _customerName          = null;
            _customerPhone         = null;
            _memberId              = 0;
        }

        public BookService(int tableId)
        {
            _tableId              = tableId;
            _headCount            = 0;
            _orderTime            = DateTime.Now;
            _bookTime             = DateTime.Now;
            _deathTime            = DateTime.Now;
            _realComeTime         = DateTime.Now;
            _customerName         = null;
            _customerPhone        = null;
            _memberId             = 0;
        }

        public BookService(int tableId, int headCount)
        {
            _tableId             = tableId;
            _headCount           = headCount;
            _orderTime           = DateTime.Now;
            _bookTime            = DateTime.Now;
            _deathTime           = DateTime.Now;
            _realComeTime        = DateTime.Now;
            _customerName        = null;
            _customerPhone       = null;
            _memberId            = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime)
        {
            _tableId             = tableId;
            _headCount           = headCount;
            _orderTime           = orderTime;
            _bookTime            = DateTime.Now;
            _deathTime           = DateTime.Now;
            _realComeTime        = DateTime.Now;
            _customerName        = null;
            _customerPhone       = null;
            _memberId            = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime)
        {
            _tableId             = tableId;
            _headCount           = headCount;
            _orderTime           = orderTime;
            _bookTime            = bookTime;
            _deathTime           = DateTime.Now;
            _realComeTime        = DateTime.Now;
            _customerName        = null;
            _customerPhone       = null;
            _memberId            = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime, DateTime deathTime)
        {
            _tableId            = tableId;
            _headCount          = headCount;
            _orderTime          = orderTime;
            _bookTime           = bookTime;
            _deathTime          = deathTime;
            _realComeTime       = DateTime.Now;
            _customerName       = null;
            _customerPhone      = null;
            _memberId           = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime, DateTime deathTime, DateTime realComeTime)
        {
            _tableId           = tableId;
            _headCount         = headCount;
            _orderTime         = orderTime;
            _bookTime          = bookTime;
            _deathTime         = deathTime;
            _realComeTime      = realComeTime;
            _customerName      = null;
            _customerPhone     = null;
            _memberId          = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime, DateTime deathTime, DateTime realComeTime, string customerName)
        {
            _tableId           = tableId;
            _headCount         = headCount;
            _orderTime         = orderTime;
            _bookTime          = bookTime;
            _deathTime         = deathTime;
            _realComeTime      = realComeTime;
            _customerName      = customerName;
            _customerPhone     = null;
            _memberId = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime, DateTime deathTime, DateTime realComeTime, string customerName, string customerPhone)
        {
            _tableId           = tableId;
            _headCount         = headCount;
            _orderTime         = orderTime;
            _bookTime          = bookTime;
            _deathTime         = deathTime;
            _realComeTime      = realComeTime;
            _customerName      = customerName;
            _customerPhone     = customerPhone;
            _memberId          = 0;
        }

        public BookService(int tableId, int headCount, DateTime orderTime, DateTime bookTime, DateTime deathTime, DateTime realComeTime, string customerName, string customerPhone, int memberId)
        {
            _tableId           = tableId;
            _headCount         = headCount;
            _orderTime         = orderTime;
            _bookTime          = bookTime;
            _deathTime         = deathTime;
            _realComeTime      = realComeTime;
            _customerName      = customerName;
            _customerPhone     = customerPhone;
            _memberId          = memberId;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int TableId
        {
            get { return _tableId; }
            set { _tableId = value; }
        }

        public int HeadCount
        {
            get { return _headCount; }
            set { _headCount = value; }
        }

        public DateTime OrderTime
        {
            get { return _orderTime; }
            set { _orderTime = value; }
        }

        public DateTime BookTime
        {
            get { return _bookTime; }
            set { _bookTime = value; }
        }

        public DateTime DeathTime
        {
            get { return _deathTime; }
            set { _deathTime = value; }
        }

        public DateTime RealComeTime
        {
            get { return _realComeTime; }
            set { _realComeTime = value; }
        }

        public string  CustomerName
        {
            get { return _customerName; }
            set { _customerName = value; }
        }

        public string  CustomerPhone
        {
            get { return _customerPhone; }
            set { _customerPhone = value; }
        }

        public int MemberId
        {
            get { return _memberId; }
            set { _memberId = value; }
        }

       

    }
}
